home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / hardware / bootml.txt < prev    next >
Text File  |  1989-07-22  |  4KB  |  131 lines

  1.  
  2. #: 593319 S0/Outbox File
  3.     18-Jul-89  16:39:00
  4. Sb: BOOT Prom Problems 
  5. Fm: NOVSOFT REP 5455 
  6. To: Brian L. Heess SMS 75470,565
  7.  
  8. Brian-
  9.  
  10. The biggest problem I've run into with multiple boot files is with the
  11. autoexec. Each boot file has it's own autoexec until the shell gets
  12. loaded(net3 or anet3), then they all have to use the same autoexec.bat in
  13. sys:login.  Once you're in the LOGIN autoexec, you have to have some way to
  14. determine which boot file you came from. Something like:
  15.   autoexec.bat in boot file #1     autoexec in boot file #2
  16.     set BOOT=1                        set BOOT=2
  17.     ipx                               ipx
  18.     net3                              net3
  19.  
  20.   autoexec in sys:login
  21.     set BOOT=0
  22.     ipx
  23.     net3
  24.     goto INST%BOOT%
  25.     :INST1
  26.     Echo hi, i'm boot file #1
  27.     login
  28.     goto end
  29.     :INST2
  30.     Echo hi, i'm boot file #2
  31.     login
  32.     goto end
  33.     :end
  34.  
  35. This method works as long as you keep the net3 at the same byte position in
  36. all of the boot files.  Most of the time, that's a pain.
  37.  
  38. The best way I've come across is to use a utility that comes with
  39. LanMaster's boot proms.  This utility modifies the net3 so that DOS
  40. continues with a different autoexec.bat file in sys:login.  Thus, you would
  41. modify the net3 for boot file #1 to continue with AUTOEXE1.BAT in SYS:LOGIN
  42. and the net3 for boot file #2 to continue with AUTOEXE2.BAT in SYS:LOGIN.
  43. Then, when you DOSGENed #1, you'd copy #1's autoexec.bat to
  44. SYS:LOGIN\AUTOEXE1.BAT and for #2, you'd copy #2's autoexec.bat to
  45. SYS:LOGIN\AUTOEXE2.BAT.  BTW, I've had great luck with LanMaster's boot
  46. proms and their support. I don't have their phone# handy but they advertise
  47. fairly regularly in LanTimes.  They also go by LanWorks.
  48.  
  49. Hope this helps.  As you well know, boot proms are great when they work and
  50. the s***s when they don't.
  51.  
  52. -Mark       
  53.  
  54. LanMaster Phone#1-800-441-6189 (Div of Vestra-Subco)
  55. If all you want is their utility to modify the WS shell, order one of
  56. any of their v2.1 boot proms.
  57.  
  58. Addt'l notes:
  59.  
  60. If you use LanMaster's utility to modify the shell, multiple boot files
  61. are very effective and reasonable to maintain.
  62.  
  63. Besides using multiple boot files for different NIC types 
  64. (ex. Arcnet&Ethernet), I've also used them very successfully for
  65. loading Fresh Technologies Printer Assist to use a local printer
  66. as a network printer.
  67.  
  68. Any parameters set in SHELL.CFG for IPX and NET3 are read from the SHELL.CFG
  69. in the boot file -- SHELL.CFG need not be present in SYS:LOGIN.
  70. Except for NETBIOS -- it reads SHELL.CFG _after_ net3 and therefore uses the
  71. SHELL.CFG in SYS:LOGIN.
  72.  
  73. I strongly reccomend that the group EVERYONE be given ROS rights to 
  74. SYS:LOGIN. This allows you to login from the autoexec.bat file and
  75. not get the annoying "batch file not found" message.
  76.  
  77. Here's a sample autoexec.bat file that forces login on one server in a 
  78. multiple server environment.  Note that the contents of all server's
  79. SYS:LOGIN are identical. Also the the setting of COMSPEC _before_ IPX is
  80. loaded. Even though drive Y: does not exist yet, this won't cause a problem
  81. since the set value won't be used.
  82.  
  83. @Echo Off
  84. Ver
  85. Echo.
  86. Rem type it out so we can check it without going back to the boot disk
  87. Type config.sys
  88. Echo.
  89. SET COMSPEC=Y:COMMAND.COM
  90. IPX
  91. NET3
  92. F:
  93. rem force login to server RBC no matter which server we're on.
  94. LOGIN RBC/
  95.  
  96.  
  97. For the case of loading Printer Assist, I would have two boot files:
  98.  
  99.   NET$DOS.SYS   plain jane, uses above autoexec.bat, net3 modified
  100.                 to continue with AUTO_DOS.bat in SYS:LOGIN
  101.  
  102.   NET$PA.SYS    loads printer assist, net3 modified to continue with
  103.                 AUTO_PA.bat in sys:login
  104.  
  105.   NET$386.SYS   loads 386 to the max, net3 modified to continue with
  106.                 AUTO_386.bat in SYS:LOGIN
  107.  
  108.  
  109. autoexec.bat in NET$PA.SYS and auto_pa.bat in SYS:LOGIN
  110.  
  111.   @Echo Off
  112.   Ver
  113.   Echo.
  114.   Rem type it out so we can check it without going back to the boot disk
  115.   Type config.sys
  116.   Echo.
  117.   SET COMSPEC=Y:COMMAND.COM
  118.   IPX
  119.   NET3
  120.   F:
  121.   LOGIN RBC/PRINTER_ASSIST
  122.   PA/q1=LASER
  123.   rem pause so that printing will occur immediately after power up
  124.   rem (sitting in LOGIN waiting for a user name seems to cause problems)
  125.   Echo Hit any key to login
  126.   pause >nul
  127.   rem force login to server RBC no matter which server we're on.
  128.   LOGIN RBC/
  129.  
  130.  
  131.